<?php
/**
* @package readerTemplate
* @author Jan Papousek
* @copyright Jan Papousek 2007
* @link http://ctenar.cz
*/
/**
* Podmenu na strane s literarnimi soutezemi.
* @package readerTemplate
*/
class CompetitionSubMenu extends Div {
	
	public function getValue() {
		$ul = new Ul;
		$this->setClass("submenu");
		$topic = Competition::getTopics();
		foreach($topic AS $key => $item) {
			$ul->addLi(new A(
				$key,
				"competition.php?action=category&amp;topic=$item"
			));
		}
		$this->addValue($ul);
		unset($ul);
		return parent::getValue();
	}
}
?>